<?php
namespace app\api\controller;

use think\Db;
use app\common\func\allRequest;

class Index
{
    public function index()
    {
        
    }


    public function luyou()
    {
        $res = Db::table('mh_zuopin')->where(['fid'=>1])->select();
        return json($res);
    }

    public function callapi()
    {
        $url = "http://www.s75.com/index/index/api";
        $urlreq = new allRequest();
        $msg = $urlreq->curl_request($url);
        $aaa = json_decode($msg,'true');
        return $aaa;
    }
}
